﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sauces.Bussinees.Entities.Almacen;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sauces.Repository.Mapping
{
    public class CategoriaMap:EntityTypeConfiguration<Categoria>
    {
        public CategoriaMap()
        {
            this.HasKey(t => t.Id);
            this.Property(c => c.Nombre).HasMaxLength(50).IsRequired();

            this.ToTable("Categoria");
            this.Property(c => c.Id).HasColumnName("IdCategoria");



        }

    }
}
